home *** CD-ROM | disk | FTP | other *** search
- /* arexx Script
- */
-
- options results
- parse ARG Port b
-
- ADDRESS value Port
-
- pp_GetDepth
- D=result
- pp_GetWidth
- W=result
- pp_GetHeight
- H=result
-
- pp_CountFrames
- count=result
- IF count<2 then DO
- pp_Warn 'Make*an*Anim*first.'
- EXIT
- END
-
- pp_GetCurrentBuffer
- CBf=result
- pp_GetCurrentBrush
- B0=result
-
- pp_FindEmptyBrush
- Brush=result
- if Brush=-1 then DO
- pp_Warn "can't*find*empty|Brush."
- EXIT
- END
- pp_SetBrush Brush
-
- pp_BufferGui "*JOIN*CURRENT*ANIM*WITH*"
- flag=result
- IF flag=-1 then DO
- EXIT
- END
-
- pp_SetBuffer flag
- pp_GetWidth
- W2=result
- IF W2=0 then DO
- pp_Warn 'This*Buffer*is*empty.'
- EXIT
- END
-
- pp_GetHeight
- H2=result
-
- pp_CountFrames
- count2=result
- IF count2<2 then DO
- pp_Warn 'This*Buffer*is*not*an|Animation.'
- EXIT
- END
-
-
- pp_DialogInit 250 80 "*Select*Frames*" 2
- pp_Slider 0 100 5 100 16 "Start*Frame*#" 1 1 count2 1
- pp_Slider 1 100 25 100 16 "End*Frame*#" 1 1 count2 count2
- pp_Dialog
- rc=result
- IF rc=0 THEN DO
- EXIT
- END
-
- pp_GetDialog 0
- s0=result
-
- pp_GetDialog 1
- s1=result
-
- count2=s1-s0+1
-
- pp_SetBuffer CBf
- pp_GotoFrame count
- pp_AddFrames count2
- pp_CountFrames
- count3=result
-
- pp_ClosestColor 0 0 0
- color=result
- pp_SetBpen color
-
- pp_BrushOpacity 100
- pp_EffectOff
-
- j=s0
- DO i=count+1 to count3
- pp_SetBuffer flag
- pp_GotoFrame j
- pp_PickBrush 0 0 W2 H2
- pp_SetBuffer CBf
- pp_GotoFrame i
- pp_Cls
- pp_plot w/2 h/2
- j=j+1
- END
-
- pp_GotoFrame 1
-
-
-
- pp_FreeBrush
- pp_SetBrush B0
-
- EXIT
-
-
-
-
-
-